package com.bt.table.ppt;

/**
 * Spc_bis_sum_rpt_defId entity. @author MyEclipse Persistence Tools
 */

public class Spc_bis_sum_rpt_defId implements java.io.Serializable {

	// Fields

	private String area_id;
	private String rpt_typ;

	// Constructors

	/** default constructor */
	public Spc_bis_sum_rpt_defId() {
	}

	/** full constructor */
	public Spc_bis_sum_rpt_defId(String area_id, String rpt_typ) {
		this.area_id = area_id;
		this.rpt_typ = rpt_typ;
	}

	// Property accessors

	public String getArea_id() {
		return this.area_id;
	}

	public void setArea_id(String area_id) {
		this.area_id = area_id;
	}

	public String getRpt_typ() {
		return this.rpt_typ;
	}

	public void setRpt_typ(String rpt_typ) {
		this.rpt_typ = rpt_typ;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Spc_bis_sum_rpt_defId))
			return false;
		Spc_bis_sum_rpt_defId castOther = (Spc_bis_sum_rpt_defId) other;

		return ((this.getArea_id() == castOther.getArea_id()) || (this
				.getArea_id() != null && castOther.getArea_id() != null && this
				.getArea_id().equals(castOther.getArea_id())))
				&& ((this.getRpt_typ() == castOther.getRpt_typ()) || (this
						.getRpt_typ() != null && castOther.getRpt_typ() != null && this
						.getRpt_typ().equals(castOther.getRpt_typ())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getArea_id() == null ? 0 : this.getArea_id().hashCode());
		result = 37 * result
				+ (getRpt_typ() == null ? 0 : this.getRpt_typ().hashCode());
		return result;
	}

}